package com.tarena.dang.services;

import java.util.List;

import com.tarena.dang.pojos.Book;
import com.tarena.dang.pojos.Category;
import com.tarena.dang.pojos.Product;

public interface ProductService {
	public List<Product> findNewProduct(int topSize) throws Exception;

	public List<Book> findBookByCatId(int currentId, int page, int pageSize)
			throws Exception;

	// public int loadMaxPage(int totalBook, int pageSize);
	public List<Category> findBookCatsById(int pid) throws Exception;

	public Book findBook(List<Category> list) throws Exception;

	public int loadMaxPage(List<Category> categorys, int currentId, int pageSize);

}
